﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Report</h2>
    <ul>
        <%
             
            DVSProject.Models.EmployeeModels employee = (DVSProject.Models.EmployeeModels)Session["Employee"];
            try
            {
                if (employee.dept_id != 1) // 1 ช่าง 2 admin
                {%>
        <li>
            <%= Html.ActionLink("Summary Report", "IndexLoadDefault", "FromMvc")%></li>
        <li>
            <%= Html.ActionLink("Complaint Report", "IndexComplaint", "FromMvc")%></li>
        <%}
            }
            catch (Exception)
            {
              Response.Redirect("../", false); 
         }%>
        <li>
            <%= Html.ActionLink("Visit Report", "Indexview", "ReportVisit")%></li>
    </ul>
</asp:Content>
